/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package test;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import client.*;
import connection.*;
import datagram.*;
import server.*;
/**
 *
 * @author rmb
 */
public class Main {
    
    public static void main (String[] args) {
        
        String filename = null;
        BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
        System.out.println("Path to file to upload: ");
        try {
            filename = input.readLine();
        }
        catch(IOException e) {}
        
        Server s = new Server();
        s.initServer();
        Client c = new Client();        
        
        c.initSend("localhost");
        
        c.initFluxControl();                        
        c.setFile(filename);
        c.sendPacks();
               
        
        
        
        
    }
    
}
